<?php
class Usuario extends AppModel {
	var $name = 'Usuario';
	var $displayField = 'nombre';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

     /* var $validate = array(
            'nombre' => array(
                'rule'=>'notEmpty',
                'required' => true,
                'message' => '*Campo Obligatorio',                
            ),
            'apellido_paterno' => array(
                'rule'=>'notEmpty',
                'required' => true,
                'message' => '*Campo Obligatorio',
            ),
            'email' => array(
                'rule'=>'email',
                'required' => true,
                'message' => '*E-mail inválido',
            ),

            );*/
        

	var $belongsTo = array(
		'Comuna' => array(
			'className' => 'Comuna',
			'foreignKey' => 'comuna_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Ayudantia' => array(
			'className' => 'Ayudantia',
			'foreignKey' => 'usuario_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>